﻿namespace Anley.DomainDrivenDesign.Contract.Infrastructure;

/// <summary>
/// 缓存仓储提供程序接口
/// </summary>
public interface IRedisRepositoryContextProvider
{
    /// <summary>
    /// 缓存连接字符串名称
    /// </summary>
    string ConnectionStringName { get; }

    /// <summary>
    /// 获取仓储上下文
    /// </summary>
    /// <returns></returns>
    IRedisRepositoryContext GetRepositoryContext();
}